/**
 * Created by Administrator on 2017/6/8.
 */
import {fetch} from 'api/fetch'



// 微信JS签名
export const callWxSign = (plaintext) => {
  return fetch({
    url: '/api/user/auth/signature',
    method: 'post',
    data: {
      plaintext
    }
  })
}

// 微信支付签名
export const callPaySign = (plaintext) => {
  return fetch({
    url: '/api/user/auth/pay/signature',
    method: 'post',
    data: {
      plaintext
    }
  })
}

// 支付预处理
export const orderPrePay = (client = {}) => {
  return fetch({
    url: '/api/user/order/prepay',
    method: 'post',
    data: {
      ...client
    }
  })
}
